@layout("/common/_container.html",{css:["/assets/common/module/city-picker/city-picker.css"],js:["/assets/common/module/city-picker/city-picker.data.js","/assets/modular/recy/wechatUser/wechatUser_add.js?r=02aefca0ae6f7b3e28599d63c95a2e6f","/assets/common/libs/rapid-validator/prototype_for_validation.js","/assets/common/libs/rapid-validator/validation_cn.js","/assets/common/libs/rapid-validator/tooltips.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加微信账号</span>
</div>

<div class="layui-container" style="">
            <form id="wechatUserForm" lay-filter="wechatUserForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                    <input name="id" type="hidden"/>


                <div class='layui-form-item'>
                    <div class="layui-inline">
                        <label class="layui-form-label">姓名</label>
                        <div class="layui-input-block">
                            <input style="width:150px" id="userName" name="userName" placeholder="姓名" type="text" class="layui-input   required" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">所在区域</label>
                        <div class="layui-input-block">
                            <input style="width:150px" id="area" name="area" placeholder="所在区域" value="${shiro.getUser().area}" type="text" class="layui-input   required area-part" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">所在村</label>
                        <div class="layui-input-block">
                            <select name="areaNext" id="areaNext" class="area-part" lay-search lay-filter="areaFilter" value="${shiro.getUser().areaCode}">

                            </select>
                            <input type="hidden" name="areaCode" id="areaCode" class="area-part" value="${shiro.getUser().areaCode}">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">村垃圾站点</label>
                        <div class="layui-input-block">
                            <select name="wasteStationId" id="wasteStationId" class="area-part" lay-search lay-filter="stationFilter">

                            </select>
                        </div>
                    </div>
                
                    <div class="layui-inline">
                        <label class="layui-form-label">住址</label>
                        <div class="layui-input-block">
                            <input style="width:150px" id="remark" name="remark" placeholder="备注" type="text" class="layui-input   required" />
                        </div>
                    </div>
                 </div>
                <div class='layui-form-item'>
                    <div class="layui-inline">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-block">
                            <#dictSelector code="SEX" theme="simple" style="width:150px" id="sex" name="sex" placeholder="性别" type="text" class="layui-input validate-number required " />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">出生日期</label>
                        <div class="layui-input-block">
                            <input style="width:150px" id="birthDay" name="birthDay" placeholder="出生日期" type="text" class="layui-input  datetime-input validate-date " />
                        </div>
                    </div>

                 
                

                 </div>
                <div class='layui-form-item'>
                    <div class="layui-inline">
                        <label class="layui-form-label">手机号</label>
                        <div class="layui-input-block">
                            <input style="width:150px" id="phone" name="phone" placeholder="手机号" type="text" class="layui-input   required" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">电子邮箱</label>
                        <div class="layui-input-block">
                            <input style="width:150px" id="email" name="email" placeholder="电子邮箱" type="text" class="layui-input   " />
                        </div>
                    </div>
                 
                

                 </div>
                <div class='layui-form-item'>
                    <div class="layui-inline">
                        <label class="layui-form-label">垃圾类别</label>
                        <div class="layui-input-block">
                            <select name="typeId" lay-filter="wasteType">
                                @for(wasteType in wasteTypeList){
                                <option value="${wasteType.id}">${wasteType.typeName}</option>
                                @}
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">卡号</label>
                        <div class="layui-input-block">
                            <input type="text" name="cardNo" placeholder="请输入卡号" class="layui-input">
                        </div>
                    </div>

                 </div>
                <div class='layui-form-item'>
                    <div class="layui-inline">
                        <label class="layui-form-label">垃圾类别</label>
                        <div class="layui-input-block">
                            <select name="typeId" lay-filter="wasteType">
                                @for(wasteType in wasteTypeList){
                                <option value="${wasteType.id}">${wasteType.typeName}</option>
                                @}
                            </select>

                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">卡号</label>
                        <div class="layui-input-block">
                            <input type="text" name="cardNo" placeholder="请输入卡号" class="layui-input">
                        </div>
                    </div>

                </div>
                <input type="hidden" name="typeIds" id="typeIds">
                <input type="hidden" name="cardNos" id="cardNos">

                
                <div class="layui-form-item text-right">
                    <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
                    <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog" id="backupPage">返回</button>
                </div>
            </form>
</div>

@}